﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.List<hercules.Models.ProdutoVendaModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Itens das Vendas
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Itens das Vendas</h2>

<p>
    <%: Html.ActionLink("Inserir Novo Item", "Create") %>
</p>
<table id="ver-zebra">
    <thead>
    <tr>
        <th>
            preço
        </th>
        <th>
            Quantidade
        </th>
        <th></th>
    </tr>
    </thead>
    <tbody>
<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Preco) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Quantidade) %>
        </td>
        <td>
            <%: Html.ActionLink("Editar", "Edit", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Detalhes", "Details", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Deletar", "Delete", new { /* id=item.PrimaryKey */ }) %>
        </td>
    </tr>
<% } %>
</tbody>
</table>

</asp:Content>
